package com.example.database.orm;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

import java.util.Date;

@Entity(tableName = "picture", ignoredColumns = {"longitude", "latidue"})
public class Picture extends OrmObject {

    // 照片ID
    @PrimaryKey(autoGenerate = true)
    private Integer pictureid;
    // 照片名称
    private String name;
    // 拍照时间
    private Date capturedTime;
    // 照片描述
    private String discription;
    // 拍照位置：经度
    private double longitude;
    // 拍照位置：纬度
    private double latitude;

    public Integer getPictureid() {
        return pictureid;
    }

    public void setPictureid(Integer pictureid) {
        this.pictureid = pictureid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCapturedTime() {
        return capturedTime;
    }

    public void setCapturedTime(Date capturedTime) {
        this.capturedTime = capturedTime;
    }

    public String getDiscription() {
        return discription;
    }

    public void setDiscription(String discription) {
        this.discription = discription;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }
}
